<?php

	session_start();
	require("connect.php");
	$link = connect_APO();
	
	if (!session_is_registered('ID')) :
		header('Location: login.php?msg=requires_login');
	endif;
	
	require("header+logoutB.php");
	headerL();
	
	echo "<html>
<body class='main'>

<FONT class='mainFont'>
  <CENTER>
    <!--<p><img src = 'images/apopic.jpg'></p>-->
    <br>
	<br>
	  <div class='headerTable'>
	  <div id='links'>
	  <div id='backLink'><A href='profile.php'>Back to Profile</A></div></div>
	  <b class='b1f'></b><b class='b2f'></b><b class='b3f'></b><b class='b4f'></b>
	  <div class='contentf'>
		  <div class = 'headerText'>
				Change Passwords:
		  </div>
		  <div style='padding-bottom: 0.5;'><form action='changePasswordToDB.php' method='post'>
			<label for='oldPassword'>Old Password: </label>
			<input type='password' id='oldPassword' name='oldPassword' style='margin-left: 74;'/><br/>
			<label for='newPassword1'>New Password: </label>
			<input type='password' id='newPassword1' name='newPassword1' style='margin-left: 67;'/><br/>
			<label for='newPassword2'>Re-enter New Password: </label>
			<input type='password' id='newPassword2' name='newPassword2'/><br/>
			<input type='submit' value='Submit' class='loginButton' style='margin-top: 5;'/>
		  </form></div>
	  </div><b class='b4f'></b><b class='b3f'></b><b class='b2f'></b><b class='b1f'></b>
		</div>
	</center>
</font>
</body>
</head>
</html>";

	require("footer.php");
	footer();
mysql_close($link);
?>